package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 laserpowerdetectorhis
 * 
 * @author DL
 * @date 2025-07-07
 */
@Data
public class Laserpowerdetectorhis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long ID;

    /** 检测开始指令(0/1) */
    @Excel(name = "检测开始指令(0/1)")
    private Long StartCommand;

    /** 冷却水状态(0/1) */
    @Excel(name = "冷却水状态(0/1)")
    private String CoolingWaterState;

    /** 检测状态(0/1) */
    @Excel(name = "检测状态(0/1)")
    private String DetectionState;

    /** 功率值异常报警(0/1) */
    @Excel(name = "功率值异常报警(0/1)")
    private String PowerValueAlarm;

    /** 激光功率检测值 */
    @Excel(name = "激光功率检测值")
    private BigDecimal PowerReadValue;

    /** 激光功率标定值 */
    @Excel(name = "激光功率标定值")
    private BigDecimal PowerStandValue;

    /** 激光功率偏差 */
    @Excel(name = "激光功率偏差")
    private BigDecimal PowerDeviation;

    /** 写库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "写库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date EventTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("StartCommand", getStartCommand())
            .append("CoolingWaterState", getCoolingWaterState())
            .append("DetectionState", getDetectionState())
            .append("PowerValueAlarm", getPowerValueAlarm())
            .append("PowerReadValue", getPowerReadValue())
            .append("PowerStandValue", getPowerStandValue())
            .append("PowerDeviation", getPowerDeviation())
            .append("EventTime", getEventTime())
            .toString();
    }
}
